#include "MultiLayer.h"

#include "CreateLayer.h"

MultiLayer::MultiLayer(NewParameters params)
{
  nbLayer=2;
  nbFreeLayer=0;
  for(int i=0;i<nbLayer;i++)
    {
      Layer temp=CreateLayer(i,params);
      push_back(temp);
      if(temp.getFrozen()==false)
	{
	  nbFreeLayer++;
	  solveLayer=i;
	}
    }
  //solveLayer=p->getInt("sLayer");
  if(nbLayer==1)
    {
      Layer temp;
      temp.setMag(0,0,1);
      push_back(temp);
    }
}

MultiLayer::~MultiLayer()
{

}

int MultiLayer::getSolveLayer()
{
  return solveLayer;
}

int MultiLayer::getNbLayer()
{
  return nbLayer;
}

int MultiLayer::getNbFreeLayer()
{
  return nbFreeLayer;
}
